﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Ycm20250401.Service._20250418
{
    public interface IUserRepository
    {
      /// <summary>
      /// 根据用户名获取用户信息
      /// </summary>
      /// <param name="userCode"></param>
      /// <returns></returns>
        Task<UserLogin?> GetUserByUserNameAsync(string userCode);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        Task<bool> AddUserAsync(UserRegister user);

    }
}
